import request from "@/utils/request";

// 获得门店标签分页
export function getStoreLabel(data) {
  return request({
    url: "/store/label/page",
    method: "post",
    data: data,
  });
}

// 创建门店标签
export function CreateStoreLabel(data) {
  return request({
    url: "/store/label/create",
    method: "post",
    data: data,
  });
}

// 更新门店标签
export function UpdateStoreLabel(data) {
  return request({
    url: "/store/label/update",
    method: "put",
    data: data,
  });
}

// 获得门店标签
export function getStoreLabelInfo(query) {
  return request({
    url: "/store/label/query",
    method: "get",
    params: query,
  });
}

// 删除门店标签
export function DeleteStoreCity(query) {
    return request({
      url: "/store/label/delete",
      method: "delete",
      params: query,
    });
}

// 根据类型获取所有标签
export function getAllLabelsByType(data) {
    return request({
      url: "/store/label/all/labelType",
      method: "post",
      data: data,
    });
  }
  